package com.zhuxulin.java.email.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class FormatUtil {
	public static String formatDate(Date date) {
		return formatDate(date, "yyyyMMdd");
	}

	public static String formatDate(Date date, String format) {
		return new SimpleDateFormat(format).format(date);
	}
}
